a = input()
c = a.split()
b = ''
j = 0
for k in range(3):
    if len(c) < 3 or len(c) > 3:
        print('Wrong input')
        break
    if 'zero' == c[j]:
        b = b + '0'
    if 'one' == c[j]:
        b = b + '1'
    if 'two' == c[j]:
        b = b + '2'
    if 'three' == c[j]:
        b = b + '3'
    if 'four' == c[j]:
        b = b + '4'
    if 'five' == c[j]:
        b = b + '5'
    if 'six' == c[j]:
        b = b + '6'
    if 'seven' == c[j]:
        b = b + '7'
    if 'eight' == c[j]:
        b = b + '8'
    if 'nine' == c[j]:
        b = b + '9'
    j += 1
print(b)